<template>
<div>
    <h1>
        预约成功界面
    </h1>
<!-- <el-input
  placeholder="搜索订单"
  v-model="input"
  clearable>
</el-input> -->
    <el-table
    :data="tableData"
    style="width: 100%">
    <el-table-column type="expand">
      <template slot-scope="props">
        <el-form label-position="left" inline class="demo-table-expand">
          <el-form-item label="车位名称">
            <span>{{ props.row.name }}</span>
          </el-form-item>
          <el-form-item label="小区名字">
            <span>{{ props.row.shop }}</span>
          </el-form-item>
          <el-form-item label="订单id ID">
            <span>{{ props.row.id }}</span>
          </el-form-item>
          <el-form-item label="车位 ID">
            <span>{{ props.row.shopId }}</span>
          </el-form-item>
          <el-form-item label="车位地区">
            <span>{{ props.row.category }}</span>
          </el-form-item>
          <el-form-item label="车位详细地址">
            <span>{{ props.row.address }}</span>
          </el-form-item>
          <el-form-item label="车位描述">
            <span>{{ props.row.desc }}</span>
          </el-form-item>
        
        </el-form>
        
      </template>
      
    </el-table-column>
    <el-table-column
      label="订单 ID"
      prop="id">
    </el-table-column>
    <el-table-column
      label="车位名称"
      prop="name">
    </el-table-column>
     <el-table-column
      label="地理位置"
      prop="address">
    </el-table-column>
     <el-table-column
      label="预约到达时间"
      prop="overtime">
    </el-table-column>
      <el-table-column
      fixed="right"
      label="操作"
      width="100">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">点击导航前往</el-button>
      </template>
    </el-table-column>
  </el-table>
   <div class="block">
    <span class="demonstration">显示总数</span>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page.sync="currentPage1"
      :page-size="100"
      layout="total, prev, pager, next"
      :total="1000">
    </el-pagination>
  </div>
</div>
  
  
</template>

<style>
  .demo-table-expand {
    font-size: 0;
  }
  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
  }
  .demo-table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
  }
</style>

<script>
  export default {
      name:"yesPay",
    data() {
      return {
        input: '',
            currentPage1: 5,
        currentPage2: 5,
        currentPage3: 5,
        currentPage4: 4,
        tableData: [{
          id: '12987122',
          name: '云南豪车车库',
          overtime:"15:30",
          category: '赠送江浙小吃、小吃零食',
          desc: '赠送荷兰优质淡奶，奶香浓而不腻',
          address: '云南市普陀区真北路',
          shop: '王小虎夫妻店',
          shopId: '10333'
        }]
      }
    },
    methods:{
        handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      },
      handleClick(){
          this.$router.push({name:"toAddress"})
      }
    }
  }
</script>